﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DodadiVino.aspx.cs" Inherits="DodadiVino" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        ДОДАДИ НОВО ВИНО</p>
    <p>
        Избери винарија</p>
    <form id="form1" runat="server">
    <asp:DropDownList ID="ddlVinarii" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource" 
            DataTextField="Ime" DataValueField="IDVinarija">
    </asp:DropDownList>
    
     <asp:SqlDataSource ID="SqlDataSource" runat="server" 
            ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Vinarii.mdb;" 
            ProviderName="System.Data.OleDb" 
            SelectCommand="SELECT [IDVinarija], [Ime] FROM [Vinarija]">
        </asp:SqlDataSource>
    <br />
    <br />
    <br />
    Име на виното&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Цена за литар<br />
    <br />
    <asp:TextBox ID="imeV" runat="server"></asp:TextBox>
    &nbsp;<asp:requiredfieldvalidator id="validateIme"
            controltovalidate="imeV"
            enableclientscript="true"
            display="Dynamic"
            errormessage="Name not entered"
            text="This field is required"
            runat="server"/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="cena" runat="server"></asp:TextBox>
    <asp:requiredfieldvalidator id="provericena"
            controltovalidate="cena"
            enableclientscript="true"
            display="Dynamic"
            errormessage="Price not entered"
            text="This field is required"
            runat="server"/>
    <br />
    <br />
    Сорта на грозје&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Алкохол(%)<br />
    <br />
    <asp:TextBox ID="sortaG" runat="server"></asp:TextBox>
    <asp:requiredfieldvalidator id="proverisortaG"
            controltovalidate="sortaG"
            enableclientscript="true"
            display="Dynamic"
            errormessage="Sort not entered"
            text="This field is required"
            runat="server"/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="alkohol" runat="server"></asp:TextBox>
    <asp:requiredfieldvalidator id="proverialkohol"
            controltovalidate="alkohol"
            enableclientscript="true"
            display="Dynamic"
            errormessage="Alchocol not entered"
            text="This field is required"
            runat="server"/>
    <br />
    <br />
    <br />
    Сорта на вино<br />
    <br />
    <asp:TextBox ID="sortaV" runat="server"></asp:TextBox>
    <asp:requiredfieldvalidator id="proverisortaV"
            controltovalidate="sortaV"
            enableclientscript="true"
            display="Dynamic"
            errormessage="Sort not entered"
            text="This field is required"
            runat="server"/>
    <br />
    <p>
        &nbsp;</p>
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        &nbsp;<asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Додади вино" />
    </p>
        <asp:ValidationSummary ID="ValidationSummary"
        ShowMessageBox="true"
        ShowSummary="false"
        HeaderText="Stranata gi ima slednite greski: "
        EnableClientScript="true"
        runat="server"/>
    <div>
    
    </div>
    </form>
</body>
</html>
